473,441 Members | 1,924 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,441 software developers and data experts.

unreadable js code

Hi all,

I'd like to find a way to make a part of my code unreadable from users when
they look at the source of my web page.
It is possible ?
I thought of using document.write(a_crypted_unreadable_string)... is it a
good idea ?
In fact, the code I want to make unreadable should generate html.

Thanks in advance,
--
alex
Oct 11 '05 #1
11 2293
alex wrote:
Hi all,

I'd like to find a way to make a part of my code unreadable from users when
they look at the source of my web page.
It is possible ?
I thought of using document.write(a_crypted_unreadable_string)... is it a
good idea ?
In fact, the code I want to make unreadable should generate html.

Thanks in advance,
--
alex

One's desire to hide the source code is inversly proportional to its
quality.

--
Vladdy
http://www.klproductions.com
Oct 11 '05 #2
Vladdy wrote on 11 okt 2005 in comp.lang.javascript:
alex wrote:
I'd like to find a way to make a part of my code unreadable from
users when they look at the source of my web page.
One's desire to hide the source code is inversly proportional to its
quality.


So true,
but a simple advice could be given,
though highly ineffective but for restraining the most casual visitor.

Use an external jscript:
<script type='text/javascript' src='mySillySecret.js'></script>

This answers the OQ perfectly,
the page root wouldn't show the code at all. ;-)
In fact, the code I want to make unreadable should generate html.


It could.
However that html could be read pasting and using the IE command line:

javascript:alert(document.documentElement.outerHTM L)
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Oct 11 '05 #3
thank you !
Oct 11 '05 #4
> I'd like to find a way to make a part of my code unreadable from users when
they look at the source of my web page.
It is possible ?
I thought of using document.write(a_crypted_unreadable_string)... is it a
good idea ?
In fact, the code I want to make unreadable should generate html.


Understand that nothing can be hidden from the person who is capable
of understanding and exploiting your code. a_crypted_unreadable_string
is the really bad idea.

The only thing that works is to unplug your server. Every other
technique to hide your code will fail. There is no point in doing
things that fail. Focus instead on things that succeed.

http://www.crockford.com/javascript/jsmin.html
Oct 11 '05 #5
alex wrote on 11 okt 2005 in comp.lang.javascript:
thank you !


Thank who?

This is usenet, do please quote to establish what and who you are
responding on or to.

Many are reading and the connection to the older posting is not available
to everyone.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Oct 11 '05 #6
"Evertjan." <ex**************@interxnl.net> a écrit dans le message de news:
Xn********************@194.109.133.242...
alex wrote on 11 okt 2005 in comp.lang.javascript:
thank you !


Thank who?

This is usenet, do please quote to establish what and who you are
responding on or to.

Many are reading and the connection to the older posting is not available
to everyone.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)


I meant thank you Evertjan.

--
alex
Oct 11 '05 #7
On 11 okt 2005, you wrote in comp.lang.javascript:
"Evertjan." <ex**************@interxnl.net> a écrit dans le message de
alex wrote on 11 okt 2005 in comp.lang.javascript:
> thank you !
Thank who?

[..]
I meant thank you Evertjan.


Roger, roger ...
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Oct 11 '05 #8
alex <al**@nospam.org> wrote in message news:43**********************@news.free.fr...
Hi all,

I'd like to find a way to make a part of my code unreadable from users when
they look at the source of my web page.
It is possible ?


Of course it's possible; I come across it all the time. Just copy the layout of
the poorer code examples posted on here. In fact the more of a beginner
you are, the easier you should find it.
--
S.C.
Oct 11 '05 #9
"Stephen Chalmers" <ig******@lycos.co.uk> a écrit dans le message de news:
43**********@mk-nntp-2.news.uk.tiscali.com...
alex <al**@nospam.org> wrote in message news:43**********************@news.free.fr...
Hi all,

I'd like to find a way to make a part of my code unreadable from users when they look at the source of my web page.
It is possible ?


Of course it's possible; I come across it all the time. Just copy the

layout of the poorer code examples posted on here. In fact the more of a beginner
you are, the easier you should find it.
--
S.C.

well... I didn't really get your piece of advice.
could you precise a little more ?

--
alex
Oct 12 '05 #10
alex <al**@nospam.org> wrote in message news:43***********************@news.free.fr...
"Stephen Chalmers" <ig******@lycos.co.uk> a écrit dans le message de news:
43**********@mk-nntp-2.news.uk.tiscali.com...
alex <al**@nospam.org> wrote in message

news:43**********************@news.free.fr...
Hi all,

I'd like to find a way to make a part of my code unreadable from users when they look at the source of my web page.
It is possible ?


Of course it's possible; I come across it all the time. Just copy the

layout of
the poorer code examples posted on here. In fact the more of a beginner
you are, the easier you should find it.
--
S.C.

well... I didn't really get your piece of advice.
could you precise a little more ?


So much of the code that one encounters is soo poorly laid-out that it would be
classed as unreadable, which is what you requested.

--
S.C.
Oct 12 '05 #11
"Stephen Chalmers" <ig******@lycos.co.uk> a écrit dans le message de news:
43**********@mk-nntp-2.news.uk.tiscali.com...
alex <al**@nospam.org> wrote in message news:43***********************@news.free.fr...
"Stephen Chalmers" <ig******@lycos.co.uk> a écrit dans le message de news: 43**********@mk-nntp-2.news.uk.tiscali.com...
alex <al**@nospam.org> wrote in message

news:43**********************@news.free.fr...
> Hi all,
>
> I'd like to find a way to make a part of my code unreadable from users
when
> they look at the source of my web page.
> It is possible ?

Of course it's possible; I come across it all the time. Just copy the

layout of
the poorer code examples posted on here. In fact the more of a

beginner you are, the easier you should find it.
--
S.C.

well... I didn't really get your piece of advice.
could you precise a little more ?


So much of the code that one encounters is soo poorly laid-out that it

would be classed as unreadable, which is what you requested.

--
S.C.


Ok, I'll try my best to produce the worst js code ever ;-)
Oct 12 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Mike B | last post by:
How do you make it source your source code is unreadable? I went to a website and tried to look at their source, and it came up blank. I then saved the file and got a message saying something...
5
by: Mike M | last post by:
Hi all, Attempting to do css for cross platform/browser compatibility. Have an issue with IE6 sp1 running on NT4. When using IE6 sp1, example 1 works fine, example 2 produces unreadable text....
1
by: Chris Lutz | last post by:
i'm currently working on a windows xp machine with an english visual studio .net 2003 environment. when i connect to an oracle table using OracleClient-Objects (Connection, DataAdapter, Command)...
1
by: 2G | last post by:
Hi, When I serialize a object using the binaryformatter and save it to a file, the file contains some parts of unreadable junk. Should I do some encoding on the bytearray or something before...
1
by: Maurizio BELLANTONE | last post by:
When I select File | Print in order to print code results are unreadable: only header are ok, but code no. Thank you. (VS. NET 2003 Italian) -- ...
3
by: Won Lee | last post by:
I made my own from which is similiar to a MsgBox but allows for positioning on the screen. If I call the class from a button event it works fine. The form, however, becomes unreadable if I call...
5
by: barbara_dave | last post by:
Hi, all, I'd like to know if there a way to make the text file unreadable. I want the user to read file only in my program, but not allow to read files from outside of my program. How to do...
3
by: tom.henricksen | last post by:
We have a web page where application users are coping and pasting some text from WordPerfect or MS Word. We have noticed some of the characters are unreadable. These characters have special...
3
by: yogarajan | last post by:
hi Friends i want convert my javascript code to unreadable format anyone know pls help me it is very urgent
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.